<template>
  <div class="bottom-right-table-1">
    <dv-border-box-6>
      <div class="table-name">
        <img src="./img/icon1.png" />世界人口排行前十
      </div>

      <dv-scroll-board :config="config" />
    </dv-border-box-6>
  </div>
</template>

<script>
export default {
  name: 'BottomRightTable1',
  data () {
    return {
      config: {
        data: [
          ['中国', '1,400,050,000'],
          ['印度', '1,354,051,854'],
          ['美国', '326,766,748'],
          ['印度尼西亚', '266,794,980'],
          ['巴西', '210,867,954'],
          ['巴基斯坦', '200,813,818'],
          ['尼日利亚', '195,875,237'],
          ['孟加拉国', '166,368,149'],
          ['俄罗斯', '143,964,709'],
          ['墨西哥', '130,759,074']
        ],
        index: true,
        columnWidth: [50],
        align: ['left'],
        oddRowBGC: 'rgba(9, 37, 50, 0.4)',
        evenRowBGC: 'rgba(10, 32, 50, 0.3)'
      }
    }
  }
}
</script>

<style lang="less">
.bottom-right-table-1 {
  width: calc(~"25% + 10px");
  height: 100%;
  margin: 0 -5px;

  .border-box-content {
    padding: 20px;
    box-sizing: border-box;
  }

  .table-name {
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;

    img {
      width: 40px;
      height: 40px;
      margin-right: 5px;
    }
  }

  .dv-scroll-board {
    height: calc(~"100% - 60px");
  }
}
</style>
